<?php $this->_extends('_layouts/default_layout'); ?>

<?php $this->_block('title'); ?>邮箱地址<?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>

<table class=dataTable>
    <thead>
    <tr>
        <th>邮箱地址</th>
        <th>称呼</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <? foreach ($addresses as $a): ?>
    <tr aid="<?=$a->id()?>">
        <td><?=$a->address?></td>
        <td><?=$a->customer_name?></td>
        <td>
            <a href="<?=url('/addressEdit', 'aid/'.$a->id())?>" target="_blank"><img title="编辑" src="<?=$_BASE_DIR?>img/icon/Edit.png" /></a>
            <a href="<?=url('/del', 'aid/'.$a->id())?>"><img title="删除" src="<?=$_BASE_DIR?>img/icon/Delete.png" /></a>
        </td>
    </tr>
        <? endforeach; ?>
    </tbody>
</table>

<?php $this->_endblock(); ?>